package org.example.mallweb.mallservice.mybatiscommon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.mallcommon.projo.Message;
import org.example.mallcommon.result.WebSocketMessage;

import java.util.List;

/**
 * @author 韩先楚
 */
@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    //批量插入
    void insertList(@Param("list") List<Message> messageList);

    //获取历史消息
    List<WebSocketMessage> getHistoryMessage(@Param("userId") String userId,@Param("receiverId") String receiverId);
}
